package com.gaoding.qa.auto.help;

import com.gaoding.commons.util.SpringUtil;
import com.gaoding.qa.auto.enums.EnvironmentTypeEnum;
import org.springframework.core.env.Environment;

/**
 * @author mobai
 * @since 2021/10/21 18:11
 */
@Deprecated
public class HttpHelper {

    /**
     * 生成oauth2 token
     */
    public static void generateToken(String account, String password) {
        TestHelper.generateTokenWithMultiOrg(account,password,false, EnvironmentTypeEnum.valueOf(SpringUtil.getBean(Environment.class).getActiveProfiles()[0].toUpperCase()));
    }


}
